/* /* ===== RESPONSIVE STYLES =====

/* Large Devices (Desktops, less than 1200px) */
@media only screen and (max-width: 1199px) {
  .hero-content h2 {
      font-size: 2.5rem;
  }

  .section-header h2 {
      font-size: 2.2rem;
  }

  .about-content {
      gap: 2rem;
  }

  .about-stats {
      flex-wrap: wrap;
  }

  .stat {
      flex: 1 0 40%;
  }
}

/* Medium Devices (Tablets, less than 992px) */
@media only screen and (max-width: 991px) {
  .menu-toggle {
      display: block;
  }

  .nav-menu {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--white);
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding-top: 2rem;
      transition: var(--transition);
      z-index: 999;
  }

  .nav-menu.active {
      left: 0;
  }

  .nav-menu li {
      margin: 0 0 1.5rem 0;
  }

  .appointment-btn {
      display: inline-block;
  }

  .hero .container {
      flex-direction: column;
  }

  .hero-content {
      text-align: center;
      padding-right: 0;
      margin-bottom: 2rem;
  }

  .hero-btns {
      justify-content: center;
  }

  .hero-image {
      max-width: 80%;
      margin: 0 auto;
  }

  .feature-boxes {
      grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
      flex-direction: column;
  }

  .about-text {
      text-align: center;
  }

  .about-stats {
      justify-content: center;
  }

  .doctors-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
      flex-direction: column;
  }

  .contact-info {
      margin-bottom: 2rem;
  }

  .footer-content {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media only screen and (max-width: 767px) {
  .section-header h2 {
      font-size: 2rem;
  }

  .hero-content h2 {
      font-size: 2.2rem;
  }

  .services-grid {
      grid-template-columns: 1fr;
  }

  .service-card {
      max-width: 450px;
      margin: 0 auto;
  }

  .doctors-grid {
      grid-template-columns: 1fr;
  }

  .doctor-card {
      max-width: 350px;
      margin: 0 auto;
  }

  .testimonial {
      padding: 1.5rem;
  }

  .appointment-form {
      padding: 1.5rem;
  }

  .footer-bottom {
      flex-direction: column;
      text-align: center;
  }

  .footer-bottom-links {
      margin-top: 1rem;
      justify-content: center;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media only screen and (max-width: 575px) {
  .logo h1 {
      font-size: 1.5rem;
  }

  .hero-content h2 {
      font-size: 1.8rem;
  }

  .hero-content p {
      font-size: 1rem;
  }

  .hero-btns {
      flex-direction: column;
      gap: 0.8rem;
  }

  .feature-boxes {
      grid-template-columns: 1fr;
  }

  .feature-box {
      max-width: 350px;
      margin: 0 auto;
  }

  .section-header h2 {
      font-size: 1.8rem;
  }

  .about-stats {
      flex-direction: column;
      align-items: center;
  }

  .stat {
      margin-bottom: 1rem;
  }

  .testimonial-author {
      flex-direction: column;
      text-align: center;
  }

  .testimonial-author img {
      margin: 0 auto 1rem;
  }

  .footer-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .footer-logo, .footer-links, .footer-services, .footer-newsletter {
      margin-bottom: 2rem;
  }

  .footer-links a:hover, .footer-services a:hover {
      padding-left: 0;
  }

  #newsletterForm {
      max-width: 300px;
      margin: 0 auto;
  }
}

/* For the testimonial slider on all devices */
.testimonial-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial {
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 100%;
}

.testimonial.active {
  opacity: 1;
  position: relative;
}

/* Fix for navbar on mobile when opened */
body.menu-open {
  overflow: hidden;
}

/* Animation for mobile menu toggle */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.nav-menu.active li {
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.nav-menu.active li:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-menu.active li:nth-child(2) {
  animation-delay: 0.2s;
}

.nav-menu.active li:nth-child(3) {
  animation-delay: 0.3s;
}

.nav-menu.active li:nth-child(4) {
  animation-delay: 0.4s;
}

.nav-menu.active li:nth-child(5) {
  animation-delay: 0.5s;
}

.nav-menu.active li:nth-child(6) {
  animation-delay: 0.6s;
} 
